package com.emergency.embackend.utils;

/**
 * @author chddd
 * @description
 * @create 2024/1/27 13:25:23
 */
public interface RedisConstants {
    String LOGIN_USER_KEY = "login:token:";
    Long LOGIN_TOKEN_TTL = 2L;
    Long LOGIN_CODE_TTL = 300L;
    String LOGIN_USER_CODE = "login:code:phone:";

    String WIKI_TYPE_KEY = "wiki:type";
    String QUIZ_TYPE_KEY = "quiz:type";

    Long TYPE_TTL = 300L;
    //视频点赞
    String VIDEO_LIKE_COUNT = "video:like:count:";
    String VIDEO_LIKE_USER = "video:like:user:";
    //文章点赞
    String ARTICLE_LIKE_COUNT = "article:like:count:";
    String ARTICLE_LIKE_USER = "article:like:user:";
    //分享点赞
    String SHARE_LIKE_COUNT = "share:like:count:";
    String SHARE_LIKE_USER = "share:like:user:";
    //视频收藏
    String VIDEO_COLLECT_COUNT = "video:collect:count:";
    String VIDEO_COLLECT_USER = "video:collect:user:";
    //文章收藏
    String ARTICLE_COLLECT_COUNT = "article:collect:count:";
    String ARTICLE_COLLECT_USER = "article:collect:user:";


    //视频浏览量
    String VIEW_VIDEO_COUNT_KEY ="view:video:count:";
    String VIEW_VIDEO_HISTORY_KEY = "view:video:history:";
    String VIEW_VIDEO_REPEAT_KEY = "view:video:repeat:";


    //文章浏览量
    String VIEW_ARTICLE_COUNT_KEY = "view:article:count:";
    String VIEW_ARTICLE_HISTORY_KEY = "view:article:history:";
    String VIEW_ARTICLE_REPEAT_KEY = "view:article:repeat:";

    //分享模块
    String VIEW_SHARE_COUNT_KEY = "view:share:count:";
    String VIEW_SHARE_HISTORY_KEY = "view:share:history:";
    String VIEW_SHARE_REPEAT_KEY = "view:share:repeat:";

    //求助模块
    String VIEW_HELP_COUNT_KEY = "view:help:count:";
    String VIEW_HELP_HISTORY_KEY = "view:help:history:";
    String VIEW_HELP_REPEAT_KEY = "view:help:repeat:";


}
